/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.commands.user;

import com.bionic.commands.common.ICommand;
import com.bionic.dao.UserDAO;
import com.bionic.entity.Users;
import com.bionic.manager.Config;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 *
 * @author FIRST
 */
public class CLogout implements ICommand {

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       String page = Config.getInstance().getProperty(Config.LOGIN);
       HttpSession session = request.getSession();
       session.removeAttribute("currentUser");
       page = Config.getInstance().getProperty(Config.MAIN);
       return page;
    }
    
}
